import java.util.Scanner;

public class Score {

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);

        int java =0;
        int html =0;
        int sql =0;

        int diff =0;
        double avg =0.0;

        System.out.print("JAVA程序逻辑基础的成绩是：");
        java = input.nextInt();
        System.out.print("网页设计与制作的成绩是：");
        html = input.nextInt();
        System.out.print("数据库应用技术的成绩是：");
        sql = input.nextInt();

        System.out.println("--------------------");

        System.out.println("JAVA      HTML      SQL");
        System.out.println(java+"     "+html+"     "+sql);

        System.out.println("--------------------");

        diff = java - sql;
        System.out.println("java 课程和数据库的成绩差："+diff);

        avg = (java + html +sql) /3;
        System.out.println("3门课程的平均分是："+avg);

        input.close();
    }
}
